package com.miya.entity.system;

import com.baomidou.mybatisplus.annotation.TableName;
import com.miya.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author Caixiaowei
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_dept")
public class Dept extends BaseEntity implements Serializable {

    public static final Long TOP_DEPT_ID = 0L;

    private static final long serialVersionUID = 1L;

    /**
     * 上级部门ID
     */
    private Long parentId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 排序
     */
    private Integer orderNum;

    private transient String createTimeFrom;

    private transient String createTimeTo;
}
